package com.bookstore.common.exception;

/**
 * 用户未找到异常
 * 当根据用户名、手机号或邮箱查找用户失败时抛出
 */
public class UserNotFoundException extends AuthenticationException {
    private static final long serialVersionUID = 1L;

    /**
     * 查找标识符（用户名、手机号或邮箱）
     */
    private String identifier;

    public UserNotFoundException(String message) {
        super(message);
    }

    public UserNotFoundException(String message, String identifier) {
        super(message);
        this.identifier = identifier;
    }

    public UserNotFoundException(String errorCode, String message, String identifier) {
        super(errorCode, message);
        this.identifier = identifier;
    }

    public String getIdentifier() {
        return identifier;
    }
}